package com.aspose.cells;

public class MsoLineFormat {
   private Shape a;

   MsoLineFormat(Shape shape) {
      this.a = shape;
   }

   zash a() {
      return this.a.N().c();
   }

   public boolean isVisible() {
      boolean var1 = true;
      if (this.a != null) {
         switch(this.a.getMsoDrawingType()) {
         case 8:
         case 24:
            var1 = false;
         }
      }

      return this.a().a(511, 3, var1);
   }

   public void setVisible(boolean value) {
      this.a().b(511, 3, value);
   }

   public int getStyle() {
      int var1 = this.a().c(461, 0);
      switch(var1) {
      case 0:
         return 0;
      case 1:
         return 4;
      case 2:
         return 3;
      case 3:
         return 2;
      case 4:
         return 1;
      default:
         return 0;
      }
   }

   public void setStyle(int value) {
      this.a.a(4294967296L);
      byte var2 = 0;
      switch(value) {
      case 0:
         var2 = 0;
         break;
      case 1:
         var2 = 4;
         break;
      case 2:
         var2 = 3;
         break;
      case 3:
         var2 = 2;
         break;
      case 4:
         var2 = 1;
      }

      if (var2 == 0) {
         this.a().b(461);
      } else {
         this.a().a(461, 0, Integer.valueOf(var2));
      }

   }

   boolean b() {
      return this.a().g(448);
   }

   public Color getForeColor() {
      Color var1 = this.a().a(448, Color.getBlack());
      return com.aspose.cells.a.c.zh.a(var1) ? Color.getBlack() : var1;
   }

   public void setForeColor(Color value) {
      this.a.a(34359738368L);
      this.a().a(448, 1, value);
      this.setVisible(true);
   }

   public Color getBackColor() {
      return this.a().a(450, Color.getWhite());
   }

   public void setBackColor(Color value) {
      this.a().a(450, 1, value);
   }

   public int getDashStyle() {
      byte var1 = 0;
      int var3 = this.a().c(462, var1);
      switch(var3) {
      case 0:
         return 6;
      case 1:
      case 3:
      case 4:
      case 5:
      default:
         return 0;
      case 2:
         int var2 = this.a().c(471, 0);
         if (var2 == 1) {
            return 5;
         }

         return 7;
      case 6:
         return 0;
      case 7:
         return 3;
      case 8:
         return 1;
      case 9:
         return 4;
      case 10:
         return 2;
      }
   }

   public void setDashStyle(int value) {
      this.a.a(549755813888L);
      byte var2 = 0;
      this.a().b(471);
      switch(value) {
      case 0:
         var2 = 6;
         break;
      case 1:
         var2 = 8;
         break;
      case 2:
         var2 = 10;
         break;
      case 3:
         var2 = 7;
         break;
      case 4:
         var2 = 9;
         break;
      case 5:
         this.a().a(471, 0, 1);
         var2 = 2;
         break;
      case 6:
         var2 = 0;
         break;
      case 7:
         var2 = 2;
      }

      if (var2 == 0) {
         this.a().b(462);
      } else {
         this.a().a(462, 0, Integer.valueOf(var2));
      }

   }

   public double getTransparency() {
      return 1.0D - this.c();
   }

   public void setTransparency(double value) {
      this.a.a(34359738368L);
      this.a(1.0D - value);
   }

   double c() {
      return (double)this.a().a(449, 1.0F);
   }

   void a(double var1) {
      this.a().b(449, (float)var1);
   }

   boolean a(int var1) {
      return this.a().a(var1);
   }

   public double getWeight() {
      int var1 = 9525;
      if (this.a.L().n().k() && this.a.y() != null) {
         var1 = this.a.y().a(this.a);
      }

      return (double)((float)this.a().c(459, var1) / 12700.0F);
   }

   public void setWeight(double value) {
      this.a.a(1073741824L);
      this.a().a(459, 0, (int)(value * 12700.0D + 0.5D));
   }

   int d() {
      return this.a().c(464, 0);
   }

   void b(int var1) {
      this.a().a(464, 0, var1);
   }

   int e() {
      return this.a().c(466, 1);
   }

   void c(int var1) {
      this.a().a(466, 0, var1);
   }

   int f() {
      return this.a().c(467, 1);
   }

   void d(int var1) {
      this.a().a(467, 0, var1);
   }

   int g() {
      return this.a().c(465, 0);
   }

   void e(int var1) {
      this.a().a(465, 0, var1);
   }

   int h() {
      return this.a().c(468, 1);
   }

   void f(int var1) {
      this.a().a(468, 0, var1);
   }

   int i() {
      return this.a().c(469, 1);
   }

   void g(int var1) {
      this.a().a(469, 0, var1);
   }
}
